--
-- Author: shunguo.chen
-- Date: 2019-01-05 14:36:23
--
-- TeamRobotVo 组队的机器人
--

local UserBaseInfo = require("app.public.dao.UserBaseInfo")

local fileName = string.getModeName(...)
local ClassRef = class(fileName)

function ClassRef:ctor(data)
    if data then
        self:init(data)
    end
end

-- data = TeamRobot
-- message TeamRobot{
-- int32 ID = 1;
-- base.UserBaseInfo BaseInfo = 2;
-- }
function ClassRef:init(data)
    self.id = data.ID

    -- dump(params, "TeamRobotVO.params")

    self._baseInfoParams = data.BaseInfo
    self._baseInfo = UserBaseInfo.new(data.BaseInfo)
end

-- 机器人的uid取负数
function ClassRef:getUid()
    return self._baseInfoParams.uid
end

-- 战斗力
function ClassRef:getCombatPower()
    return self._baseInfo.combatPower
end

function ClassRef:getBaseInfoParams()
    return self._baseInfoParams
end

function ClassRef:getBaseInfo()
    return self._baseInfo
end

return ClassRef